package com.jingdianjichi.auth.application.convert;

import com.jingdianjichi.auth.application.dto.AuthPermissionDTO;
import com.jingdianjichi.auth.application.dto.AuthRoleDTO;
import com.jingdianjichi.auth.domain.entity.AuthPermissionBO;
import com.jingdianjichi.auth.domain.entity.AuthRoleBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 标签DTO的转换
 */
@Mapper
public interface AuthPermissionDTOConverter {

    AuthPermissionDTOConverter INSTANCE = Mappers.getMapper(AuthPermissionDTOConverter.class);


    AuthPermissionBO convertDTOtoBo(AuthPermissionDTO authPermissionDTO);
    AuthPermissionDTO convertBotoDTO(AuthPermissionBO authPermissionBO);
    List<AuthPermissionBO>  convertListDTOtoBo(List<AuthPermissionBO> authPermissionBOS);
}
